package com.px.base.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
 * 行政区划_部门_用户
 *
 * @author 品讯科技
 * @date 2024-08
 */
@Data
@Accessors(chain = true)
@ApiModel("行政区划_部门_用户")
public class RegionDeptUserVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("类别（a.行政区划 b.部门 c.用户）")
    private String type;

    @ApiModelProperty("真实ID")
    private Long id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("行政区划代码/用户名")
    private String code;

    @ApiModelProperty(value = "上级ID", hidden = true)
    private String parentId;

    @ApiModelProperty(value = "唯一ID(类别+id拼接得来)", hidden = true)
    private String oid;

    @ApiModelProperty("扩展字段（type=a.行政区划等级、type=c.用户所属部门名称）")
    private String extension;

    // @ApiModelProperty("下级列表")
    // private List<RegionDeptUserVo> children;

}
